package com.smedi.ismedi.personnel.core.port.adapter.service;

import com.smedi.ismedi.authoritymanagement.api.dto.request.DataPermissionScopeRequest;
import com.smedi.ismedi.personnel.core.domain.aggregatemodel.Role;
import com.smedi.ismedi.personnel.core.domain.aggregatemodel.RoleAssignment;
import com.smedi.ismedi.personnel.core.domain.dto.RoleAssignmentQuery;
import com.smedi.ismedi.personnel.core.domain.dto.RoleQuery;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-10 20:45
 */
public interface AuthorityAccessRemoteApiService {
    void boundDataPermissionScope(DataPermissionScopeRequest dataPermissionScopeRequest);

    String queryRoleNameByPersonId(Long personId);

    List<Long> getQueryAllPersonIdsByRoleId(Long roleId);

    List<Long> getQueryAllPersonIdsByRoleId(List<Long> roleIds);

    List<Role> getRoleList(RoleQuery roleQuery);

    List<Role> getRoleListWithoutToken(RoleQuery roleQuery);

    List<RoleAssignment> getRoleAssignmentList(RoleAssignmentQuery roleAssignmentQuery);

    List<RoleAssignment> getRoleAssignmentListWithoutToken(RoleAssignmentQuery roleAssignmentQuery);
}
